package com.oc.mba.util;

import java.util.HashMap;
import java.util.Map;

public class OcConfig {
	private static final CommLog logger = new CommLog(OcConfig.class);
	protected static Map<String, String> signIDs = new HashMap<String, String>();
	static {
		ConfigUtil.loadSignIDs();
	}
	public static Map<String, String> getSignIDs() {
		return signIDs;
	}

	public static void setSignIDs(Map<String, String> signIDs) {
		OcConfig.signIDs = signIDs;
	}
	
	public static void addSignID(String signID, String controllerName) {
		logger.info("add signID. signID=" + signID + ", controllerName");
		signIDs.put("signID" + signID, controllerName);
	}

	public static String getControllerName(String signID) {
		return signIDs.get("signID" + signID);
	}
}
